package com.zhou.base.components.feign.simple.feign;

import com.zhou.base.components.bs.common.model.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xianfeng
 * @date 2023/11/22 17:54
 * @description:
 */
@FeignClient(name = "${test.url.name:feign-example2}", url = "http://localhost:1111")
public interface TestUrlConnectionRefusedFeign {

    @GetMapping("/getToken")
    Response<String> getToken(@RequestParam String appKey, @RequestParam String appSecret);

}
